package com.zkingsoft.bean;

import com.matrix.core.anotations.Extend;
import com.zkingsoft.common.bean.EntityDTOExt;

/**
 * @description (素材)
 * @author 姜友瑶
 * @date 2018-07-18 07:20
 */
public class BizMaterial extends EntityDTOExt {
	@Extend
	private static final long serialVersionUID = 1L;


	/**
	 * 主键
	 */
	private String id;
	/**
	 * 素材名称
	 */
	private String name;
	/**
	 * 原图
	 */
	private String img;
	/**
	 * 原图预览图
	 */
	private String imgPath;

	/**
	 * 收藏次数
	 */
	private Integer collectionTimes;

	/**
	 * 分类
	 */
	private String catalog;

	/**
	 * 元素
	 */
	private String element;

	/**
	 * 当前登录人的id ，用于数据查询
	 */
	private String userId;

	/**
	 * 是否被收藏，大于0则是 被收藏了
	 */
	private int isCollection;

	/**
	 * 访问地址
	 */
	private String path;

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getIsCollection() {
		return isCollection;
	}
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setIsCollection(int isCollection) {
		this.isCollection = isCollection;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Integer getCollectionTimes() {
		if (collectionTimes == null) {
			return 0;
		}
		return collectionTimes;
	}

	public void setCollectionTimes(Integer collectionTimes) {
		this.collectionTimes = collectionTimes;
	}

	public String getCatalog() {
		return catalog;
	}

	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

	public String getElement() {
		return element;
	}

	public void setElement(String element) {
		this.element = element;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}
	

	 
	 

}